package android.slc.box.core.utils.interference;

public interface OnHandlerInterference<T> {
    int PRIORITY_HIGHEST = 0;
    int PRIORITY_LOWEST = 100;
    //常用
    int PRIORITY_COMMONLY = 50;

    /**
     * 关闭监听
     * 返回值 根据具体需求来进行处理
     */
    boolean handle(T obj);

    /**
     * 优先级
     *
     * @return
     */
    default int getPriority() {
        return PRIORITY_COMMONLY;
    }

}
